<% content_for :adminpage do %>
    #top-menu {display: none}
    #nav {display: none}
    #right-header {display: none}
    #weasel-coffee {display: none}
<% end %>
<% content_for :admin do %>
    <a href="/admin" class="hyperlink-detail">Trang Chủ</a>
    <a href="/admin/product_management" class="hyperlink-detail">Sản phẩm</a><br>
    <%= flash[:message] %> <br>

    <form action="/admin/new_product" method="post">
      <table>
        <tr>
          <td>
            <label>
              <input type="text" placeholder="Tên Sản Phẩm" name="newprd_name" required>
            </label>
          </td>
        </tr>
        <tr>
          <td>
            <label>
              <textarea rows="6" placeholder="Mô tả" name="newprd_des" required></textarea>
            </label>
          </td>
        </tr>
        <tr>
          <td>
            <label>
              <select name="newprd_type">
                <option value="coffee">Cà phê</option>
                <option value="drink">Thức uống</option>
                <option value="food">Đồ ăn</option>
              </select>
            </label>
          </td>
        </tr>
        <tr>
          <td>
            <input type="file" name="newprd_img" required/>
          </td>
        </tr>
        <tr>
          <td>
            <label>
              <input type="number" name="newprd_price" min="1000" step="1000" required/>
            </label>
          </td>
        </tr>
        <tr>
          <td>
            <input type="submit" value="Thêm"/>
          </td>
        </tr>
        <tr>
          <input type="hidden" name="newprd_action" value="add_prd"/>
        </tr>
      </table>
    </form>
<% end %>

